.class public Lcom/philzhu/www/ddz/ChooseLevelScreen;
.super Lcom/philzhu/www/framework/Screen;
.source "ChooseLevelScreen.java"


# static fields
.field private static final FREE_GOLD:I = 0x7

.field private static final HOUSE_10:I = 0x2

.field private static final HOUSE_10000:I = 0x6

.field private static final HOUSE_2:I = 0x1

.field private static final HOUSE_50:I = 0x3

.field private static final HOUSE_500:I = 0x4

.field private static final HOUSE_5000:I = 0x5


# instance fields
.field private centerHouseX:I

.field private currentPressedButton:I

.field private rightHouseX:I


# direct methods
.method public constructor <init>(Lcom/philzhu/www/framework/Game;)V
    .locals 2
    .parameter "game"

    .prologue
    .line 26
    invoke-direct {p0, p1}, Lcom/philzhu/www/framework/Screen;-><init>(Lcom/philzhu/www/framework/Game;)V

    .line 21
    const/4 v0, 0x0

    iput v0, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 27
    const/4 v0, 0x4

    iput v0, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->screenType:I

    .line 28
    const/16 v0, 0x320

    sget-object v1, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v1}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v1

    sub-int/2addr v0, v1

    div-int/lit8 v0, v0, 0x2

    iput v0, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    .line 29
    const/16 v0, 0x2bc

    sget-object v1, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v1}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v1

    sub-int/2addr v0, v1

    iput v0, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    .line 30
    return-void
.end method

.method private inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z
    .locals 3
    .parameter "event"
    .parameter "x"
    .parameter "y"
    .parameter "width"
    .parameter "height"

    .prologue
    const/4 v2, 0x1

    .line 216
    iget v0, p1, Lcom/philzhu/www/framework/Input$TouchEvent;->x:I

    if-le v0, p2, :cond_0

    iget v0, p1, Lcom/philzhu/www/framework/Input$TouchEvent;->x:I

    add-int v1, p2, p4

    sub-int/2addr v1, v2

    if-ge v0, v1, :cond_0

    .line 217
    iget v0, p1, Lcom/philzhu/www/framework/Input$TouchEvent;->y:I

    if-le v0, p3, :cond_0

    iget v0, p1, Lcom/philzhu/www/framework/Input$TouchEvent;->y:I

    add-int v1, p3, p5

    sub-int/2addr v1, v2

    if-ge v0, v1, :cond_0

    move v0, v2

    .line 220
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method


# virtual methods
.method public dispose()V
    .locals 0

    .prologue
    .line 370
    return-void
.end method

.method public drawScore(Lcom/philzhu/www/framework/Graphics;Ljava/lang/String;II)V
    .locals 11
    .parameter "g"
    .parameter "line"
    .parameter "x"
    .parameter "y"

    .prologue
    .line 344
    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result v10

    .line 345
    .local v10, len:I
    const/4 v9, 0x0

    .local v9, i:I
    :goto_0
    if-lt v9, v10, :cond_0

    .line 355
    return-void

    .line 347
    :cond_0
    invoke-virtual {p2, v9}, Ljava/lang/String;->charAt(I)C

    move-result v8

    .line 349
    .local v8, character:C
    const/16 v0, 0x30

    sub-int v0, v8, v0

    mul-int/lit8 v4, v0, 0x11

    .line 350
    .local v4, srcX:I
    const/16 v6, 0x11

    .line 352
    .local v6, srcWidth:I
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->numbers:Lcom/philzhu/www/framework/Pixmap;

    const/4 v5, 0x0

    const/16 v7, 0x15

    move-object v0, p1

    move v2, p3

    move v3, p4

    invoke-interface/range {v0 .. v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIIIII)V

    .line 353
    add-int/2addr p3, v6

    .line 345
    add-int/lit8 v9, v9, 0x1

    goto :goto_0
.end method

.method public pause()V
    .locals 1

    .prologue
    .line 359
    iget-object v0, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    invoke-interface {v0}, Lcom/philzhu/www/framework/Game;->getFileIO()Lcom/philzhu/www/framework/FileIO;

    move-result-object v0

    invoke-static {v0}, Lcom/philzhu/www/ddz/Settings;->save(Lcom/philzhu/www/framework/FileIO;)V

    .line 360
    return-void
.end method

.method public present(F)V
    .locals 9
    .parameter "deltaTime"

    .prologue
    const/4 v8, 0x0

    const/high16 v7, 0x4396

    const/16 v6, 0x64

    const/4 v5, 0x5

    const/high16 v4, 0x42c8

    .line 225
    iget-object v1, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    invoke-interface {v1}, Lcom/philzhu/www/framework/Game;->getGraphics()Lcom/philzhu/www/framework/Graphics;

    move-result-object v0

    .line 227
    .local v0, g:Lcom/philzhu/www/framework/Graphics;
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->backgroundGame:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0, v1, v8, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 228
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->banner:Lcom/philzhu/www/framework/Pixmap;

    const/16 v2, 0x320

    sget-object v3, Lcom/philzhu/www/ddz/Assets;->banner:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v3}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v3

    sub-int/2addr v2, v3

    div-int/lit8 v2, v2, 0x2

    invoke-interface {v0, v1, v2, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 231
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->gold:Lcom/philzhu/www/framework/Pixmap;

    const/16 v2, 0x82

    const/16 v3, 0xa

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 232
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget v2, Lcom/philzhu/www/ddz/Settings;->score:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->gold:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v2

    add-int/lit16 v2, v2, 0x82

    add-int/lit8 v2, v2, 0xa

    const/16 v3, 0xf

    invoke-virtual {p0, v0, v1, v2, v3}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->drawScore(Lcom/philzhu/www/framework/Graphics;Ljava/lang/String;II)V

    .line 235
    invoke-static {}, Lcom/philzhu/www/ddz/Settings;->getSoundEnabled()Z

    move-result v1

    if-eqz v1, :cond_1

    .line 237
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->musicOn:Lcom/philzhu/www/framework/Pixmap;

    const/16 v2, 0x226

    const/16 v3, 0xa

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 244
    :goto_0
    iget v1, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    const/4 v2, 0x7

    if-ne v1, v2, :cond_2

    .line 245
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->freeGoldPressed:Lcom/philzhu/www/framework/Pixmap;

    const/16 v2, 0x26c

    invoke-interface {v0, v1, v2, v5}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 250
    :goto_1
    iget v1, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    const/4 v2, 0x1

    if-ne v1, v2, :cond_3

    .line 252
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    const/16 v2, 0x5f

    const/16 v3, 0x69

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 258
    :goto_2
    iget v1, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_4

    .line 260
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v2, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    sub-int/2addr v2, v5

    const/16 v3, 0x69

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 266
    :goto_3
    iget v1, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    const/4 v2, 0x3

    if-ne v1, v2, :cond_5

    .line 268
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v2, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    sub-int/2addr v2, v5

    const/16 v3, 0x69

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 274
    :goto_4
    iget v1, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    const/4 v2, 0x4

    if-ne v1, v2, :cond_6

    .line 276
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    const/16 v2, 0x5f

    const/16 v3, 0x131

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 282
    :goto_5
    iget v1, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    if-ne v1, v5, :cond_7

    .line 284
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v2, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    sub-int/2addr v2, v5

    const/16 v3, 0x131

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 290
    :goto_6
    iget v1, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    const/4 v2, 0x6

    if-ne v1, v2, :cond_8

    .line 292
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v2, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    sub-int/2addr v2, v5

    const/16 v3, 0x131

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 301
    :goto_7
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->houseS2:Lcom/philzhu/www/framework/Pixmap;

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v2

    add-int/lit8 v2, v2, 0x64

    add-int/lit8 v2, v2, 0x5

    invoke-interface {v0, v1, v6, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 302
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->houseS10:Lcom/philzhu/www/framework/Pixmap;

    iget v2, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    sget-object v3, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v3}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v3

    add-int/lit8 v3, v3, 0x64

    add-int/lit8 v3, v3, 0x5

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 303
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->houseS50:Lcom/philzhu/www/framework/Pixmap;

    iget v2, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    sget-object v3, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v3}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v3

    add-int/lit8 v3, v3, 0x64

    add-int/lit8 v3, v3, 0x5

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 304
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->houseS500:Lcom/philzhu/www/framework/Pixmap;

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v2

    add-int/lit16 v2, v2, 0x12c

    add-int/lit8 v2, v2, 0x5

    invoke-interface {v0, v1, v6, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 305
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->houseS5000:Lcom/philzhu/www/framework/Pixmap;

    iget v2, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    sget-object v3, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v3}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v3

    add-int/lit16 v3, v3, 0x12c

    add-int/lit8 v3, v3, 0x5

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 306
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->houseS10000:Lcom/philzhu/www/framework/Pixmap;

    iget v2, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    sget-object v3, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v3}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v3

    add-int/lit16 v3, v3, 0x12c

    add-int/lit8 v3, v3, 0x5

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 308
    sget v1, Lcom/philzhu/www/ddz/Settings;->score:I

    if-gtz v1, :cond_9

    .line 310
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->noPermission:Lcom/philzhu/www/framework/Pixmap;

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0, v2, v4, v4}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 311
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->noPermission:Lcom/philzhu/www/framework/Pixmap;

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v3, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    int-to-float v3, v3

    invoke-interface {v0, v2, v3, v4}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 312
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->noPermission:Lcom/philzhu/www/framework/Pixmap;

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v3, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    int-to-float v3, v3

    invoke-interface {v0, v2, v3, v4}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 313
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->noPermission:Lcom/philzhu/www/framework/Pixmap;

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0, v2, v4, v7}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 314
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->noPermission:Lcom/philzhu/www/framework/Pixmap;

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v3, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    int-to-float v3, v3

    invoke-interface {v0, v2, v3, v7}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 315
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->noPermission:Lcom/philzhu/www/framework/Pixmap;

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v3, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    int-to-float v3, v3

    invoke-interface {v0, v2, v3, v7}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 340
    :cond_0
    :goto_8
    return-void

    .line 241
    :cond_1
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->musicOff:Lcom/philzhu/www/framework/Pixmap;

    const/16 v2, 0x226

    const/16 v3, 0xa

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto/16 :goto_0

    .line 247
    :cond_2
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->freeGold:Lcom/philzhu/www/framework/Pixmap;

    const/16 v2, 0x26c

    invoke-interface {v0, v1, v2, v5}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto/16 :goto_1

    .line 256
    :cond_3
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0, v1, v6, v6}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto/16 :goto_2

    .line 264
    :cond_4
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v2, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    invoke-interface {v0, v1, v2, v6}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto/16 :goto_3

    .line 272
    :cond_5
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v2, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    invoke-interface {v0, v1, v2, v6}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto/16 :goto_4

    .line 280
    :cond_6
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    const/16 v2, 0x12c

    invoke-interface {v0, v1, v6, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto/16 :goto_5

    .line 288
    :cond_7
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v2, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    const/16 v3, 0x12c

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto/16 :goto_6

    .line 296
    :cond_8
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v2, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    const/16 v3, 0x12c

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto/16 :goto_7

    .line 319
    :cond_9
    sget v1, Lcom/philzhu/www/ddz/Settings;->level:I

    const/4 v2, 0x4

    if-ge v1, v2, :cond_a

    .line 321
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->noPermission:Lcom/philzhu/www/framework/Pixmap;

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v3, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    int-to-float v3, v3

    invoke-interface {v0, v2, v3, v4}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 323
    :cond_a
    sget v1, Lcom/philzhu/www/ddz/Settings;->level:I

    const/16 v2, 0x8

    if-ge v1, v2, :cond_b

    .line 325
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->noPermission:Lcom/philzhu/www/framework/Pixmap;

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v3, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    int-to-float v3, v3

    invoke-interface {v0, v2, v3, v4}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 327
    :cond_b
    sget v1, Lcom/philzhu/www/ddz/Settings;->level:I

    const/16 v2, 0xc

    if-ge v1, v2, :cond_c

    .line 329
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->noPermission:Lcom/philzhu/www/framework/Pixmap;

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0, v2, v4, v7}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 331
    :cond_c
    sget v1, Lcom/philzhu/www/ddz/Settings;->level:I

    const/16 v2, 0x10

    if-ge v1, v2, :cond_d

    .line 333
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->noPermission:Lcom/philzhu/www/framework/Pixmap;

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v3, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    int-to-float v3, v3

    invoke-interface {v0, v2, v3, v7}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 335
    :cond_d
    sget v1, Lcom/philzhu/www/ddz/Settings;->level:I

    const/16 v2, 0x14

    if-ge v1, v2, :cond_0

    .line 337
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->noPermission:Lcom/philzhu/www/framework/Pixmap;

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    iget v3, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    int-to-float v3, v3

    invoke-interface {v0, v2, v3, v7}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    goto/16 :goto_8
.end method

.method public resume()V
    .locals 0

    .prologue
    .line 364
    iget-object p0, p0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    .end local p0
    check-cast p0, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-static {p0}, Lcom/philzhu/www/ads/AdsManager;->getPoints(Lcom/philzhu/www/framework/impl/AndroidGame;)V

    .line 365
    return-void
.end method

.method public update(F)V
    .locals 17
    .parameter "deltaTime"

    .prologue
    .line 34
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v2, v0

    invoke-interface {v2}, Lcom/philzhu/www/framework/Game;->getInput()Lcom/philzhu/www/framework/Input;

    move-result-object v2

    invoke-interface {v2}, Lcom/philzhu/www/framework/Input;->getTouchEvents()Ljava/util/List;

    move-result-object v16

    .line 35
    .local v16, touchEvents:Ljava/util/List;,"Ljava/util/List<Lcom/philzhu/www/framework/Input$TouchEvent;>;"
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v2, v0

    invoke-interface {v2}, Lcom/philzhu/www/framework/Game;->getInput()Lcom/philzhu/www/framework/Input;

    move-result-object v2

    invoke-interface {v2}, Lcom/philzhu/www/framework/Input;->getKeyEvents()Ljava/util/List;

    .line 37
    invoke-interface/range {v16 .. v16}, Ljava/util/List;->size()I

    move-result v15

    .line 38
    .local v15, len:I
    const/4 v14, 0x0

    .end local p1
    .local v14, i:I
    :goto_0
    if-lt v14, v15, :cond_0

    .line 213
    return-void

    .line 39
    :cond_0
    move-object/from16 v0, v16

    move v1, v14

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/philzhu/www/framework/Input$TouchEvent;

    .line 41
    .local v3, event:Lcom/philzhu/www/framework/Input$TouchEvent;
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v6

    .line 42
    .local v6, houseWith:I
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->house:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v7

    .line 43
    .local v7, houseHeight:I
    iget v2, v3, Lcom/philzhu/www/framework/Input$TouchEvent;->type:I

    const/4 v4, 0x1

    if-ne v2, v4, :cond_12

    .line 45
    const/4 v2, 0x0

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 46
    const/16 v4, 0x64

    const/16 v5, 0x64

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 48
    sget v2, Lcom/philzhu/www/ddz/Settings;->score:I

    if-gtz v2, :cond_7

    .line 50
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object/from16 p1, v0

    check-cast p1, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-virtual/range {p1 .. p1}, Lcom/philzhu/www/framework/impl/AndroidGame;->showNoGoldDialog()V

    .line 58
    :cond_1
    :goto_1
    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    move v4, v0

    const/16 v5, 0x64

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 60
    sget v2, Lcom/philzhu/www/ddz/Settings;->score:I

    if-gtz v2, :cond_8

    .line 62
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object/from16 p1, v0

    check-cast p1, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-virtual/range {p1 .. p1}, Lcom/philzhu/www/framework/impl/AndroidGame;->showNoGoldDialog()V

    .line 77
    :cond_2
    :goto_2
    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    move v4, v0

    const/16 v5, 0x64

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 79
    sget v2, Lcom/philzhu/www/ddz/Settings;->score:I

    if-gtz v2, :cond_a

    .line 81
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object/from16 p1, v0

    check-cast p1, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-virtual/range {p1 .. p1}, Lcom/philzhu/www/framework/impl/AndroidGame;->showNoGoldDialog()V

    .line 96
    :cond_3
    :goto_3
    const/16 v4, 0x64

    const/16 v5, 0x12c

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 98
    sget v2, Lcom/philzhu/www/ddz/Settings;->score:I

    if-gtz v2, :cond_c

    .line 100
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object/from16 p1, v0

    check-cast p1, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-virtual/range {p1 .. p1}, Lcom/philzhu/www/framework/impl/AndroidGame;->showNoGoldDialog()V

    .line 115
    :cond_4
    :goto_4
    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    move v4, v0

    const/16 v5, 0x12c

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_5

    .line 117
    sget v2, Lcom/philzhu/www/ddz/Settings;->score:I

    if-gtz v2, :cond_e

    .line 119
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object/from16 p1, v0

    check-cast p1, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-virtual/range {p1 .. p1}, Lcom/philzhu/www/framework/impl/AndroidGame;->showNoGoldDialog()V

    .line 134
    :cond_5
    :goto_5
    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    move v4, v0

    const/16 v5, 0x12c

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_6

    .line 136
    sget v2, Lcom/philzhu/www/ddz/Settings;->score:I

    if-gtz v2, :cond_10

    .line 138
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object/from16 p1, v0

    check-cast p1, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-virtual/range {p1 .. p1}, Lcom/philzhu/www/framework/impl/AndroidGame;->showNoGoldDialog()V

    .line 38
    .end local v3           #event:Lcom/philzhu/www/framework/Input$TouchEvent;
    :cond_6
    :goto_6
    add-int/lit8 v14, v14, 0x1

    goto/16 :goto_0

    .line 54
    .restart local v3       #event:Lcom/philzhu/www/framework/Input$TouchEvent;
    :cond_7
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v2, v0

    new-instance v4, Lcom/philzhu/www/ddz/GameScreen;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v5, v0

    const/4 v8, 0x2

    invoke-direct {v4, v5, v8}, Lcom/philzhu/www/ddz/GameScreen;-><init>(Lcom/philzhu/www/framework/Game;I)V

    invoke-interface {v2, v4}, Lcom/philzhu/www/framework/Game;->setScreen(Lcom/philzhu/www/framework/Screen;)V

    goto/16 :goto_1

    .line 66
    :cond_8
    sget v2, Lcom/philzhu/www/ddz/Settings;->level:I

    const/4 v4, 0x4

    if-lt v2, v4, :cond_9

    .line 68
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v2, v0

    new-instance v4, Lcom/philzhu/www/ddz/GameScreen;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v5, v0

    const/16 v8, 0xa

    invoke-direct {v4, v5, v8}, Lcom/philzhu/www/ddz/GameScreen;-><init>(Lcom/philzhu/www/framework/Game;I)V

    invoke-interface {v2, v4}, Lcom/philzhu/www/framework/Game;->setScreen(Lcom/philzhu/www/framework/Screen;)V

    goto/16 :goto_2

    .line 72
    :cond_9
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object/from16 p1, v0

    check-cast p1, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-virtual/range {p1 .. p1}, Lcom/philzhu/www/framework/impl/AndroidGame;->showDialog()V

    goto/16 :goto_2

    .line 85
    :cond_a
    sget v2, Lcom/philzhu/www/ddz/Settings;->level:I

    const/16 v4, 0x8

    if-lt v2, v4, :cond_b

    .line 87
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v2, v0

    new-instance v4, Lcom/philzhu/www/ddz/GameScreen;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v5, v0

    const/16 v8, 0x32

    invoke-direct {v4, v5, v8}, Lcom/philzhu/www/ddz/GameScreen;-><init>(Lcom/philzhu/www/framework/Game;I)V

    invoke-interface {v2, v4}, Lcom/philzhu/www/framework/Game;->setScreen(Lcom/philzhu/www/framework/Screen;)V

    goto/16 :goto_3

    .line 91
    :cond_b
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object/from16 p1, v0

    check-cast p1, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-virtual/range {p1 .. p1}, Lcom/philzhu/www/framework/impl/AndroidGame;->showDialog()V

    goto/16 :goto_3

    .line 104
    :cond_c
    sget v2, Lcom/philzhu/www/ddz/Settings;->level:I

    const/16 v4, 0xc

    if-lt v2, v4, :cond_d

    .line 106
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v2, v0

    new-instance v4, Lcom/philzhu/www/ddz/GameScreen;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v5, v0

    const/16 v8, 0x1f4

    invoke-direct {v4, v5, v8}, Lcom/philzhu/www/ddz/GameScreen;-><init>(Lcom/philzhu/www/framework/Game;I)V

    invoke-interface {v2, v4}, Lcom/philzhu/www/framework/Game;->setScreen(Lcom/philzhu/www/framework/Screen;)V

    goto/16 :goto_4

    .line 110
    :cond_d
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object/from16 p1, v0

    check-cast p1, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-virtual/range {p1 .. p1}, Lcom/philzhu/www/framework/impl/AndroidGame;->showDialog()V

    goto/16 :goto_4

    .line 123
    :cond_e
    sget v2, Lcom/philzhu/www/ddz/Settings;->level:I

    const/16 v4, 0x10

    if-lt v2, v4, :cond_f

    .line 125
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v2, v0

    new-instance v4, Lcom/philzhu/www/ddz/GameScreen;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v5, v0

    const/16 v8, 0x1388

    invoke-direct {v4, v5, v8}, Lcom/philzhu/www/ddz/GameScreen;-><init>(Lcom/philzhu/www/framework/Game;I)V

    invoke-interface {v2, v4}, Lcom/philzhu/www/framework/Game;->setScreen(Lcom/philzhu/www/framework/Screen;)V

    goto/16 :goto_5

    .line 129
    :cond_f
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object/from16 p1, v0

    check-cast p1, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-virtual/range {p1 .. p1}, Lcom/philzhu/www/framework/impl/AndroidGame;->showDialog()V

    goto/16 :goto_5

    .line 142
    :cond_10
    sget v2, Lcom/philzhu/www/ddz/Settings;->level:I

    const/16 v3, 0x14

    if-lt v2, v3, :cond_11

    .line 144
    .end local v3           #event:Lcom/philzhu/www/framework/Input$TouchEvent;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v2, v0

    new-instance v3, Lcom/philzhu/www/ddz/GameScreen;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v4, v0

    const/16 v5, 0x2710

    invoke-direct {v3, v4, v5}, Lcom/philzhu/www/ddz/GameScreen;-><init>(Lcom/philzhu/www/framework/Game;I)V

    invoke-interface {v2, v3}, Lcom/philzhu/www/framework/Game;->setScreen(Lcom/philzhu/www/framework/Screen;)V

    goto/16 :goto_6

    .line 148
    :cond_11
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object/from16 p1, v0

    check-cast p1, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-virtual/range {p1 .. p1}, Lcom/philzhu/www/framework/impl/AndroidGame;->showDialog()V

    goto/16 :goto_6

    .line 153
    .restart local v3       #event:Lcom/philzhu/www/framework/Input$TouchEvent;
    :cond_12
    iget v2, v3, Lcom/philzhu/www/framework/Input$TouchEvent;->type:I

    const/4 v4, 0x2

    if-ne v2, v4, :cond_18

    .line 155
    const/4 v2, 0x0

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 156
    const/16 v4, 0x64

    const/16 v5, 0x64

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_13

    .line 157
    const/4 v2, 0x1

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 159
    :cond_13
    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    move v4, v0

    const/16 v5, 0x64

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_14

    .line 160
    const/4 v2, 0x2

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 162
    :cond_14
    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    move v4, v0

    const/16 v5, 0x64

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_15

    .line 163
    const/4 v2, 0x3

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 165
    :cond_15
    const/16 v4, 0x64

    const/16 v5, 0x12c

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_16

    .line 166
    const/4 v2, 0x4

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 168
    :cond_16
    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    move v4, v0

    const/16 v5, 0x12c

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_17

    .line 169
    const/4 v2, 0x5

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 171
    :cond_17
    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    move v4, v0

    const/16 v5, 0x12c

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_6

    .line 172
    const/4 v2, 0x6

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    goto/16 :goto_6

    .line 175
    :cond_18
    iget v2, v3, Lcom/philzhu/www/framework/Input$TouchEvent;->type:I

    if-nez v2, :cond_6

    .line 177
    const/4 v2, 0x0

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 178
    const/16 v10, 0x26c

    const/4 v11, 0x5

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->freeGold:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v12

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->freeGold:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v13

    move-object/from16 v8, p0

    move-object v9, v3

    invoke-direct/range {v8 .. v13}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_19

    .line 180
    const/4 v2, 0x7

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 181
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object/from16 p1, v0

    check-cast p1, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-static/range {p1 .. p1}, Lcom/philzhu/www/ads/AdsManager;->showOffers(Lcom/philzhu/www/framework/impl/AndroidGame;)V

    .line 183
    :cond_19
    const/16 v10, 0x226

    const/16 v11, 0xa

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->musicOn:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v12

    sget-object v2, Lcom/philzhu/www/ddz/Assets;->musicOff:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v13

    move-object/from16 v8, p0

    move-object v9, v3

    invoke-direct/range {v8 .. v13}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_1a

    .line 185
    invoke-static {}, Lcom/philzhu/www/ddz/Settings;->toggleSound()V

    .line 187
    :cond_1a
    const/16 v4, 0x64

    const/16 v5, 0x64

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_1b

    .line 188
    const/4 v2, 0x1

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 189
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->chooseLevel:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    .line 191
    :cond_1b
    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    move v4, v0

    const/16 v5, 0x64

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_1c

    .line 192
    const/4 v2, 0x2

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 193
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->chooseLevel:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    .line 195
    :cond_1c
    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    move v4, v0

    const/16 v5, 0x64

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_1d

    .line 196
    const/4 v2, 0x3

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 197
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->chooseLevel:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    .line 199
    :cond_1d
    const/16 v4, 0x64

    const/16 v5, 0x12c

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_1e

    .line 200
    const/4 v2, 0x4

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 201
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->chooseLevel:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    .line 203
    :cond_1e
    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->centerHouseX:I

    move v4, v0

    const/16 v5, 0x12c

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_1f

    .line 204
    const/4 v2, 0x5

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 205
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->chooseLevel:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    .line 207
    :cond_1f
    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/ChooseLevelScreen;->rightHouseX:I

    move v4, v0

    const/16 v5, 0x12c

    move-object/from16 v2, p0

    invoke-direct/range {v2 .. v7}, Lcom/philzhu/www/ddz/ChooseLevelScreen;->inBounds(Lcom/philzhu/www/framework/Input$TouchEvent;IIII)Z

    move-result v2

    if-eqz v2, :cond_6

    .line 208
    const/4 v2, 0x6

    move v0, v2

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;->currentPressedButton:I

    .line 209
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->chooseLevel:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto/16 :goto_6
.end method
